﻿using System;
using MediatR;

namespace SW.DDD.Domain
{
    /// <summary>
    /// 领域事件
    /// </summary>
    /// <typeparam name="TEntity">触发事件的实体</typeparam>
    public interface IDomainEvent<out TEntity> : INotification
        where TEntity : IEntity
    {
        TEntity Target { get; }
    }
}
